<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('要素认证行为记录列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>商户号：</label>
                                <input type="text" name="merno"/>
                            </li>
                            <li>
                                <label>姓名：</label>
                                <input type="text" name="screenName"/>
                            </li>
                            <li>
                                <label>认证类型：</label>
                                <select name="type">
                                    <option value="">所有</option>
                                    <option value="1">身份认证</option>
                                    <option value="2">结算卡认证</option>
                                    <option value="3">信用卡提额</option>
                                    <option value="4">消费卡认证</option>
                                    <option value="5">添加结算卡</option>
                                </select>
                            </li>
                            <li class="select-time">
                                <label>操作时间：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="startTime"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('elementsInfo:elementsInfo:edit')}]];
        var removeFlag = [[${@permission.hasPermi('elementsInfo:elementsInfo:remove')}]];
        var prefix = ctx + "elementsInfo/elementsInfo";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "要素认证行为记录",
                clickToSelect:true,
                columns: [
                {
                    field: 'id',
                    title: '主键',
                    visible: false
                },
                {
                    field: 'merno',
                    title: '商户号'
                },
                {
                    field: 'screenName',
                    title: '姓名'
                },
                {
                    field: 'idnumberDense',
                    title: '身份证号'
                },
                {
                    field: 'resphone',
                    title: '手机号'
                },
                {
                    field: 'screenNumDense',
                    title: '卡号'
                },
                {
                    field: 'rpid',
                    title: '请求流水'
                },
                {
                    field: 'retcode',
                    title: '响应码'
                },
                {
                    field: 'retmsg',
                    title: '响应信息'
                },
                {
                    field: 'createTime',
                    title: '操作时间'
                },
                {
                    field: 'tdType',
                    title: '通道类型',
                    formatter: function(value, row, index) {
                        if ("1"==value){
                            return '<span style="color:blue;">钱宝</span>';
                        }else if("2"==value){
                            return '<span style="color:green;">备份</span>';
                        }
                    }
                },
                {
                    field: 'source',
                    title: '用户来源',
                    formatter: function(value, row, index) {
                        if ("1"==value){
                            return '<span style="color:blue;">联付宝App</span>';
                        }else if("2"==value){
                            return '<span style="color:green;">大POS商户</span>';
                        }else if("3"==value){
                            return '<span style="color:green;">服务商APP</span>';
                        }else if("4"==value){
                            return ' <span style="color:green;">服务商平台</span>';
                        }else if("5"==value){
                            return ' <span style="color:green;">总后台</span>';
                        }else if("6"==value){
                            return ' <span style="color:green;">机构</span>';
                        }else{
                            return ' <span style="color:red;">其他</span>';
                        }
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>